import math
from ctypes import *

import numpy as np
import numpy.ctypeslib as npct
from numpy.core.defchararray import index
from numpy.core.records import record
import matplotlib.pyplot as plt

def sui(base):
    temp = 0
    temp += 8000*0.03
    temp += (base-8000)*0.1
    temp += (base-17000)*0.2
    return  temp

yanglaobaoxian = 0.08
yiliaobaoxian = 0.02
shiyebaoxian = 0.01

zhufanggonjijin = 0.05

base = 26*1000
ratio = 0.8
butie = 0

fangzu = 4000
yingshi = 2000
gongzuoshichang = 13

print("zuidi: ",base*ratio - sui(base*ratio))
print("daoshou: ",base*ratio*(1-yanglaobaoxian-yiliaobaoxian-shiyebaoxian) - fangzu - yingshi - sui(base*ratio))
print("shixin: ",(base*ratio*(1-yanglaobaoxian-yiliaobaoxian-shiyebaoxian) - fangzu - yingshi - sui(base*ratio))/(28*gongzuoshichang))